export default{
    getTabList(type){
       return [
            {
                label: "我的待办",
                name: "daiban",
                params: {type_id: type, category: 'duty'},
                badgeNum: 0,
                formatter: (data) => {
                    return data
                },
                hasBadge: true
            },
            {
                label: "我的已办",
                name: "yiban",
                params: {type_id: type, category: 'relation'},
                badgeNum: 0,
                formatter: (data) => {
                    return data
                }
            },
            {
                label: "我的发起",
                name: "faqi",
                params: {type_id: type, category: 'owner'},
                badgeNum: 0,
                formatter: (data) => {
                    return data
                }
            },
            {
                label: "我的分发",
                name: "fenfa",
                params: {type_id: type},
                badgeNum: 0,
                appFun: "getDocumentDist",
                formatter: function (data) {
                    let list = data
                    list = list.map(item => {
                        return item = {...item, ...item.document_info}
                    })
                    return list
                }
            },
            {
                label: "我的关注",
                name: "guanzhu",
                params: {type_id: type, collect: 1},
                badgeNum: 0,
                formatter: (data) => {
                    return data
                }
            },
            {
                label: "我的催办",
                name: "cuiban",
                params: {type_id: type, urge: 1},
                badgeNum: 0,
                formatter: (data) => {
                    return data
                }
            },
            {
                label: "我的草稿",
                name: "draft",
                params: {type_id: type, is_draft: 1},
                badgeNum: 0,
                formatter: (data) => {
                    return data
                }
            },
        ]
    }
}

